0327716b646148ac5ebbed0609e2afc3de4151e8,src/main/java/org/gedcomx/conversion/gedcom/dq55/CommonMapper.java,CommonMapper,toSourcesAndSourceReferences,#List#GedcomxConversionResult#,66

Before Change


      } else {
        dqSource.getValue();
        dqSource.getText();
        dqSource.getQuality();
      }

      // TODO: log?

After Change


    List<SourceReference> sourceReferences = new ArrayList<SourceReference>(dqSources.size());

    for (org.folg.gedcom.model.SourceCitation dqSource : dqSources) {
      if ((dqSource.getRef() != null) || ((dqSource.getValue() != null) || (dqSource.getText() != null) || (dqSource.getQuality() != null))) { // TODO: may need to update the condition to include notes or media
        Description gedxSourceDescription = new Description();
        DublinCoreDescriptionDecorator gedxDecoratedSourceDescription = DublinCoreDescriptionDecorator.newInstance(gedxSourceDescription);
        gedxSourceDescription.setId(UUID.randomUUID().toString()); // TODO: need a real identifier here?